package myzzyl.response;

import io.swagger.v3.oas.annotations.media.PatternProperties;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@Schema(description = "基本分页响应包装类")
@AllArgsConstructor
@NoArgsConstructor
public class PageResponse<T> {

    @Schema(description = "页数", example = "1")
    private Long pages;
    @Schema(description = "总记录数", example = "10")
    private Long total;
    @Schema(description = "列表数据", example = "[]")
    private List<T> records;


}
